package com.arcbbs;

import com.arcbbs.service.SysSettingService;
import javafx.application.Application;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class initRun implements ApplicationRunner {
@Resource
private SysSettingService service;
     @Override
    public void run(ApplicationArguments args) throws Exception{
service.refresCache();
     }
}
